package com.example.tenant.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;


import com.example.tenant.Converter.CustomStringConverter;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @program: waterx
 * @description: 部门应用关联表
 * @author: qinghuan
 * @create: 2024-09-05 18:06
 **/
@Data
 @ColumnWidth(10)
@TableName("sys_dept_client")
@EqualsAndHashCode(callSuper = true)
public class SysDeptClient extends Model<SysDeptClient> {

	/**
	 * 部门应用关联表主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ExcelProperty("id")
	private String id;

	/**
	 * 部门id
	 */
	@ExcelProperty("dept_id")
	private String deptId;

	/**
	 * 应用id
	 */
	@ExcelProperty("client_id")
	private String clientId;

	/**
	 * 状态
	 */
	@ExcelProperty("dept_status")
	private String deptStatus;

	/**
	 * 部门编码
	 */
	@ExcelProperty("dept_code")
	private String deptCode;

	/**
	 * 部门名称
	 */
	@ExcelProperty("dept_name")
	private String deptName;

	/**
	 * 层级编码
	 */
	@ExcelProperty("level_code")
	private String levelCode;

	/**
	 * 父级id
	 */
	@ExcelProperty("parent_id")
	private String parentId;

	/**
	 * 备注
	 */
	@ExcelProperty("remark")
	private String remark;

	/**
	 * 排序
	 */
	@ExcelProperty("order_num")
	private Integer orderNum;

	/**
	 * 数据标签
	 */
	@ExcelProperty("data_flag")
	private Integer dataFlag;

	/**
	 * 创建人
	 */
	@ExcelProperty(value = "create_by", converter = CustomStringConverter.class )
	@TableField(fill = FieldFill.INSERT)
	private String createBy;

	/**
	 * 创建时间
	 */
	@ExcelProperty("create_time")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@ExcelProperty(value = "update_by", converter = CustomStringConverter.class )
	private String updateBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@ExcelProperty("update_time")
	private Date updateTime;

}
